$OpenBSD: patch-src_logtail2,v 1.2 2012/05/08 19:05:06 sthen Exp $
--- src/logtail2.orig	Sat Mar  3 23:02:29 2012
+++ src/logtail2	Sat Mar  3 23:02:10 2012
@@ -109,7 +109,7 @@ sub determine_rotated_logfile {
     # function with dateext magic added.
 
     #print "determine_rotated_logfile $filename $inode\n";
-    for my $codefile (glob("/usr/share/logtail/detectrotate/*.dtr")) {
+    for my $codefile (glob("${TRUEPREFIX}/share/logtail/detectrotate/*.dtr")) {
         my $func = do $codefile;
         if (!$func) {
 	    print STDERR "cannot compile $codefile: $!";
